/// <reference types="vite/client" />
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
// import DetailView from '../views/DetailView.vue'
import AboutView from '../views/AboutView.vue'
import FilesView from '../views/FilesView.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'files',
    component: FilesView
  },
  {
    path: '/about',
    name: 'about',
    component: AboutView
  },
  // {
  //   path: '/details',
  //   name: 'details',
  //   component: DetailView
  // }
]

const router = createRouter({
  history: createWebHistory(),
  // history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
